package com.itheima.mapper;

import com.itheima.vo.LinkVO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface FriendshipLinkMapper {
    List<LinkVO> getPageContent(String type);

    void addLink(LinkVO linkVO);

    void updateLink(LinkVO linkVO);

    @Select("select * from ydd_link where id = #{id}")
    LinkVO rowInfoLink(Integer id);

    @Delete("delete from ydd_link where id = #{id}")
    void deleteLink(Integer id);
}
